﻿#region Includes
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Text;
#endregion

namespace xna_game_engine.source
{
    class CScreenElementImage : CScreenElement
    {
    #region Members
        private string m_TextureName;
        private Texture2D m_Texture;
    #endregion

    #region Functions
        public CScreenElementImage(string text_name, Vector2 pos)
        {
            m_TextureName = text_name;
            m_Pos = pos;
            m_Type = ScreenElementTypes.ART;
        }
        public override void Draw()
        {
            GameSystems.Graphics.DrawImage(m_Texture, m_Pos, Color.White);
        }
        public override void Init()
        {
            //m_Texture = GameGlobals.Content.Load<Texture2D>("sprites\\health_base");
            m_Texture = GameGlobals.Content.Load<Texture2D>(m_TextureName);
        }
        public override void Update(GameTime gt)
        {
            // Todo: update, if necessary
        }
    #endregion

    #region Properties
    #endregion
    }
}
